package com.project.service;

import com.project.entity.SysInfo;

import java.util.List;

/**
 * @Author: TateBrown
 * @date: 2018/5/26 15:08
 * @param:
 * @return:
 */
public interface SysInfoService {
    SysInfo findById(int id);
    int modifyOneById(SysInfo sysInfo);
    int addOne(SysInfo sysInfo);
    int removeOneById(Integer id);
    List<SysInfo> findAll();

    /**
     * author: WheelChen
     * date: 2017/11/3
     * function: 根据属性名查找
     *
     * @param propertyName 属性名
     * @return
     */
    SysInfo findOneByPropertyName(String propertyName);

    /**
     * author: WheelChen
     * date: 2017/11/4
     * function: 根据属性名修改单条记录
     *
     * @param sysInfo
     * @return
     */
    int modifyOneByPropertyName(SysInfo sysInfo);

    /**
     * author: WheelChen
     * date: 2017/11/8
     * function: 根据条件批量查找
     *
     * @param sysInfo
     * @return
     */
    List<SysInfo> findBatchByCondition(SysInfo sysInfo);
}
